import { Row, Col, Tag, Image } from 'myselfantd';
import type { CardProps } from 'antd';
import styles from './index.module.scss';
import React from 'react';
interface Props {
  item?: any;
}
enum MTYPE {
  待分配,
  已分配,
  全部,
}
const App: React.FC<CardProps & Props> = (props) => {
  let { item } = props;
  return (
    <Tag className={styles.tag} noborder={1} color={item?.isAllocate ? 'success' : 'warning'}>
      {MTYPE[item?.isAllocate]}
    </Tag>
  );
};
export default App;
